package com.javatop.controller.user;


import com.javatop.pojo.entity.Result;
import com.javatop.pojo.entity.User;
import com.javatop.service.serviceInterface.PersonShowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PersonShowController {

    @Autowired
    public PersonShowService personShowServiceImpl;

        /*
    负责人：
    功能：  看接口文档  对应用户接口的第四个接口
    参数：  看接口文档
    返回值：  看接口文档
     */

    @RequestMapping("/user")
    public Result<User> query(@RequestParam(value = "id") Integer id){
        return personShowServiceImpl.query(id);
    }



}
